import request from "@/utils/request";

// 班级列表信息
export const getClasstListApi = (data) => {
  return request({
    url: "/class/class",
    method: "get",
    data,
  });
};

// 新增班级信息
export const addClassInfoApi = (data) => {
  return request({
    url: "/class/class",
    method: "post",
    data,
  });
};
// 获取单行数据 进行回显
export const editClassApi = (id) => {
  return request({
    url: "/class/class/" + id,
    method: "get",
  });
};

// 编辑班级信息
export const editClassInfoApi = (data) => {
  return request({
    url: "/class/class/" + data.id,
    method: "put",
    data,
  });
};

// 删除班级信息
export const delClassInfoApi = (id) => {
  return request({
    url: "/class/class/" + id,
    method: "delete",
  });
};

//获取教师
export const getTeacherListApi = (params) => {
  return request({
    url: "/class/teacher",
    params,
  });
};
